package com.teamcenter.rac.massupdate.ui.grid;

import java.util.Comparator;
import net.sourceforge.nattable.config.DefaultComparator;
import net.sourceforge.nattable.data.convert.DefaultDisplayConverter;
import net.sourceforge.nattable.data.convert.IDisplayConverter;
import net.sourceforge.nattable.painter.cell.ICellPainter;
import net.sourceforge.nattable.style.CellStyleAttributes;
import net.sourceforge.nattable.style.HorizontalAlignmentEnum;
import net.sourceforge.nattable.style.IStyle;
import net.sourceforge.nattable.style.Style;
@SuppressWarnings({"rawtypes"})
public class GridColumn
{
  private int m_index;
  private String m_name;
  private String m_displayName;
  private boolean m_isEditable = false;
  private IEditorConfig m_editorConfig;
  private Integer m_width;
  private IDisplayConverter m_displayConverter = new DefaultDisplayConverter();
  private boolean m_isSortable = true;
  private Comparator m_comparator = new DefaultComparator();
  private IStyle m_columnStyle = null;
  private IStyle m_columnHeaderStyle = null;
  private ICellPainter m_cellPainter;
  
  public GridColumn(int paramInt, String paramString1, String paramString2)
  {
    this.m_index = paramInt;
    this.m_name = paramString1;
    this.m_displayName = paramString2;
    this.m_columnHeaderStyle = new Style();
    this.m_columnHeaderStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, HorizontalAlignmentEnum.LEFT);
    this.m_columnStyle = new Style();
    this.m_columnStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, HorizontalAlignmentEnum.LEFT);
  }
  
  public int getIndex()
  {
    return this.m_index;
  }
  
  public void setIndex(int paramInt)
  {
    this.m_index = paramInt;
  }
  
  public String getName()
  {
    return this.m_name;
  }
  
  public void setName(String paramString)
  {
    this.m_name = paramString;
  }
  
  public String getDisplayName()
  {
    return this.m_displayName;
  }
  
  public void setDisplayName(String paramString)
  {
    this.m_displayName = paramString;
  }
  
  public boolean isEditable()
  {
    return this.m_isEditable;
  }
  
  public void setEditable(boolean paramBoolean)
  {
    this.m_isEditable = paramBoolean;
  }
  
  public IEditorConfig getEditorConfig()
  {
    return this.m_editorConfig;
  }
  
  public void setEditorConfig(IEditorConfig paramIEditorConfig)
  {
    this.m_editorConfig = paramIEditorConfig;
  }
  
  public Integer getWidth()
  {
    return this.m_width;
  }
  
  public void setWidth(Integer paramInteger)
  {
    this.m_width = paramInteger;
  }
  
  public IDisplayConverter getDisplayConverter()
  {
    return this.m_displayConverter;
  }
  
  public void setDisplayConverter(IDisplayConverter paramIDisplayConverter)
  {
    this.m_displayConverter = paramIDisplayConverter;
  }
  
  public boolean isSortable()
  {
    return this.m_isSortable;
  }
  
  public void setSortable(boolean paramBoolean)
  {
    this.m_isSortable = paramBoolean;
  }
  
  public Comparator getComparator()
  {
    return this.m_comparator;
  }
  
  public void setComparator(Comparator paramComparator)
  {
    this.m_comparator = paramComparator;
  }
  
  public IStyle getColumnStyle()
  {
    return this.m_columnStyle;
  }
  
  public void setColumnStyle(IStyle paramIStyle)
  {
    this.m_columnStyle = paramIStyle;
  }
  
  public IStyle getColumnHeaderStyle()
  {
    return this.m_columnHeaderStyle;
  }
  
  public void setColumnHeaderStyle(IStyle paramIStyle)
  {
    this.m_columnHeaderStyle = paramIStyle;
  }
  
  public ICellPainter getCellPainter()
  {
    return this.m_cellPainter;
  }
  
  public void setCellPainter(ICellPainter paramICellPainter)
  {
    this.m_cellPainter = paramICellPainter;
  }
}

